package cn.lili.modules.member.mapper;

import cn.lili.modules.member.entity.dos.RedPackUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RedPackUserMapper extends BaseMapper<RedPackUser> {

    @Select("select * from li_red_pack_user where last_task_time <= DATE_SUB(NOW(), INTERVAL #{days} DAY)")
    List<RedPackUser> getListByLastTime(@Param("days") Integer days);
}
